hackerrank set .intersection() operation problem solution in python programming